package cn.javass.dp.iterator.example7;

import java.util.Collection;

/**
 * 定义翻页访问聚合元素的迭代接口
 */
public interface AggregationIterator {

    boolean hasNext();

    /**
     * 取出下面几个元素
     * @param num
     * @return
     */
    Collection next(int num);

    boolean hasPrevious();

    Collection previous(int num);

}
